package com.yxe.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzq
 * @since 2022-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_expense")
@ApiModel(value="Expense对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class Expense implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "房租日期")
    @JsonFormat(pattern = "MM.dd",locale = "zh",timezone = "GMT+8")
    private LocalDateTime roomRentTime;

    @ApiModelProperty(value = "水费")
    private Float waterRate;

    @ApiModelProperty(value = "电费")
    private Float electricityBill;

    @ApiModelProperty(value = "燃气费")
    private Float gasBill;

    @ApiModelProperty(value = "用户id")
    private Integer userId;


}
